home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / ArtForTheMac.sea.hqx / Sample Scenes / lego < prev    next >
Text File  |  1992-09-27  |  2KB  |  90 lines

  1. # This scene contains a few colorful lego blocks.
  2.  
  3. fieldofview  32.0    
  4. raysperpixel 4
  5. output rlea
  6. antialiasing adaptive
  7. background 0,0,.12
  8.  
  9. #    projection orthographic 
  10. #    screensize 6.5, 6.5
  11.  
  12. #--------------------------------------------
  13. #    The point of view and lighting are derived
  14. # from the frame number, so we can render a
  15. # sequence that looks like a flyby.
  16. #--------------------------------------------
  17. myframe      = frameno - 12
  18. eyex                     = -9 + myframe / 4.0
  19. eyey                     = 5 - myframe / 4.0
  20. eyez                     = -8 + myframe
  21. light1x         = myframe / 3.0 - 10
  22. light1y         = 20.0 - myframe
  23.  
  24. lookat (eyex, eyey, eyez, 0, -1, 0, 0)
  25.  
  26. light {
  27.     colour 0.8, 1.2, 1.2
  28.     location (light1x, light1y, 30.0)
  29. }
  30.  
  31. light {
  32.     colour 1.2, 1.2, 0.8
  33.     location (5.0, 20.0, -10.0)
  34. }
  35.  
  36. include legoblocks
  37.  
  38. #--------------------------------------------
  39. # Instances of lego blocks.
  40. #--------------------------------------------
  41. doubleton {
  42.     colour 1.2, 0.1, 0.1
  43. }
  44.  
  45. singleton {
  46.     colour 0.1, 0.15, 1.2
  47.  translate (1,1,0)
  48. }
  49.  
  50. singleton {
  51.     color 0.9, 0.9, 0.2
  52.  rotate(90,z)
  53.  rotate(70,y)
  54.  translate (-2.5, -2.0, 0.0)
  55. }
  56.  
  57. square { 
  58.  colour 1.2, 1.2, 1.2
  59.  translate (0, -1, -1)
  60. }
  61.  
  62. eight { 
  63.     translate (-1, -2, 0) 
  64.     rotate (90, y)
  65.     color 0.0, 0.1, 1.0
  66. }
  67.  
  68. long {
  69.         translate (-2.4, -2, 2.6)
  70.      color 1.2, 0.1, 0.1
  71. }
  72.             
  73. doubleton {
  74.     translate (3, -2, 3)
  75.  rotate (45, y)
  76.  color 0.9, 0.9, 0.2
  77. }
  78.  
  79. #
  80. # A little green mat for them to sit on.
  81. #
  82. box {
  83.         colour 0.05, 0.3, 0.1
  84.   material 0, 0.9, 0.1, 2
  85.   texture fuzzy scalefactor 0.4
  86.   vertex (6, -2.494, 6)  
  87.         vertex (-5, -3.1, -5)
  88.   rotate (30, y)
  89. }
  90.